home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Tool Chest / Dev.CD Feb 97 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAESetData.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  2.0 KB  |  47 lines  |  [TEXT/CWIE]

  1. // MSAESetData.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSAESETDATA__
  8. #define __MSAESETDATA__
  9.  
  10. #include <Printing.h>
  11. #include <OSA.h>
  12.  
  13. #include "MSToken.h"
  14.  
  15. pascal OSErr    DoSetData(const AppleEvent    *theAppleEvent,
  16.                                 AppleEvent    *reply,
  17.                                 long        handlerRefCon);
  18.  
  19. OSErr             HandleSetData(const AEDesc *theObj, AEDesc *dataDesc);
  20.  
  21. OSErr            SetApplicationProperty( const AEDesc *theTokenDesc, const AEDesc *dataDesc );
  22. OSErr            SetApplicationTokenProperty( AppPropToken* theToken, const AEDesc *dataDesc );
  23. OSErr            SetWindowProperty(const AEDesc *theWPTokenDesc, const AEDesc *dataDesc);
  24. OSErr            SetWindowTokenProperty( WindowPropToken* theToken, const AEDesc* theData );
  25. OSErr            SetWindowSelectionProperty(WindowPtr theWindow, const AEDesc *dataDesc);
  26. OSErr            SetDocumentProperty( const AEDesc *theTokenDesc, const AEDesc *dataDesc );
  27. OSErr            SetDocumentTokenProperty( WindowPropToken* theToken, const AEDesc *dataDesc );
  28. OSErr            SetMenuProperty( const AEDesc *theTokenDesc, const AEDesc *dataDesc );
  29. OSErr            SetMenuTokenProperty( MenuPropToken* theToken, const AEDesc* theData );
  30. OSErr            SetMenuItemProperty( const AEDesc *theTokenDesc, const AEDesc *dataDesc );
  31. OSErr            SetMenuItemTokenProperty( MenuItemPropToken* theToken, const AEDesc* theData );
  32.  
  33. OSErr            SetTextProperty(const AEDesc *tokenDesc, const AEDesc *dataDesc);
  34. OSErr            CheckForMenuItemName( short theResID, OSAID theOSAID );
  35.  
  36. OSErr            SetFontOfTextToken(TextToken* theToken, Str255 name);
  37. OSErr            SetSizeOfTextToken(TextToken* theToken, short theSize);
  38. OSErr            SetStyleOfTextToken(TextToken* theToken, Style onStyle, Style offStyle);
  39. OSErr            GetTextStyles(const AEDesc *dataDesc, Style *onStyles, Style *offStyles);
  40. void            AddDescStyleItem(DescType theDesc, Style *theStyle);
  41. OSErr            MakeStyleFromAEList(const AEDescList *styleList, Style *theStyle, Boolean *hadPlain);
  42. short             ItemForNamedFont(Str255 theName);
  43.  
  44. OSErr            GetTHPrintFromDescriptor(const AEDesc *sourceDesc, THPrint *result);
  45.  
  46. #endif
  47.